package com.bt.lms.ui.page.sys.style.action;

import javafx.beans.property.BooleanProperty;
import javafx.event.EventHandler;
import javafx.scene.control.Button;
import javafx.scene.input.MouseEvent;

/**
 * 分页按钮的鼠标移入事件（当前页）
 */
public class PagingBtnCurrentMouseAction implements EventHandler<MouseEvent> {

    /**
     * 标签
     */
    private final Button button;

    /**
     * 构建事件
     *
     * @param button 按钮
     */
    public PagingBtnCurrentMouseAction(Button button) {
        this.button = button;
    }

    /**
     * 事件执行
     *
     * @param event the event which occurred
     */
    @Override
    public void handle(MouseEvent event) {

        //下划线
        BooleanProperty booleanProperty = button.underlineProperty();
        booleanProperty.set(true);

    }
}
